package com.zyf.chapter01.refactor.util;

/**
 * 分布式锁 单例类
 */
public class RedisDistributedLock {

    private static final RedisDistributedLock lock = new RedisDistributedLock();

    private RedisDistributedLock() {}

    public static RedisDistributedLock getSingletonIntance() {
        return lock;
    }

    public boolean lockTransction(String id) {
        return true;
    }

    public void unlockTranscation(String id) {
    }
}
